.docwrap {
  overflow: hidden;
  &.service {
    display: flex;
    flex-direction: column;
    height: 100%;
    .chat-room {
      // 填充当前窗口剩余的高度
      flex: 1;
      padding: 8px 12px;
      .msg-wrap {
        display: flex;
        margin: 8px 0;
        .from {
          width: 33px;
          height: 33px;
          border-radius: 3px;
          border: 1px solid #9c9;
          background: #f5fff5;
          text-align: center;
          line-height: 33px;
        }
        .msg {
          padding: 5px 10px;
          border-radius: 4px;
          box-shadow: inset -1px -1px rgba(0, 0, 0, 0.15);
          word-break: break-all;
          img {
            max-height: 100px;
          }
        }
      }
      .sys {
        text-align: center;
        color: #666;
        padding: 5px 12px;
        justify-content: center;
        .from {
          display: none;
        }
        .msg {
          padding: 5px 0;
          box-shadow: none;
        }
      }
      &.service {
        .msg {
          background: #fffffc;
        }
        .service {
          flex-flow: row-reverse;
          .msg {
            background: #f5fff5;
            margin-right: 8px;
            border: 1px solid #cfc;
          }
        }
      }
      &.client {
        .client {
          flex-flow: row-reverse;
          .msg {
            background: #f5fff5;
            margin-right: 8px;
            border: 1px solid #cfc;
          }
        }
      }
    }
    .chat-control {
      padding: 9px 12px;
      display: flex;
      // 定高
      .send-input {
        font-size: 14px;
        padding: 0 8px;
        line-height: 32px;
      }
      .send-btn {
        width: 40px;
        height: 40px;
        margin-left: 5px;
      }
      .upload {
        width: 40px;
        height: 40px;
        margin-left: 5px;
        position: relative;
        .uploader-input {
          cursor: pointer;
          position: absolute;
          opacity: 0;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
        }
      }
    }
  }
  &.layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    border: 1px solid #fff;
    overflow: hidden;
    .nav-list {
      display: flex;
      border: 1px solid #fff;
      .nav {
        padding: 6px 12px;
        margin: 1px;
        background: #fff;
      }
    }
    .concent {
      flex: 1;
      overflow-y: auto;
    }
  }
  &.car {
    height: 100%;
    display: flex;
    flex-direction: column;
    .goods-list {
      flex: 1;
    }
    .confirm {
      height: 40px;
      border-top: 1px solid #ccc;
      padding: 10px;
      text-align: right;
    }
  }
}
